Smartling\Helpers\ShortcodeHelper A

Total Complexity 52
Dependencies 6
Dependents 2
Total lines 479
Lines of code 272
Logical lines of code 137
Comment lines 125
Methods 25
Properties 0

Methods 25

Method Rating Maintainability Complexity Lines of code
uploadShortcodeHandler()
S
53 6 23
extractTranslations()
S
50 5 33
buildShortcodeAttributes()
S
56 5 17
shortcodeApplierHandler()
S
61 4 11
hasShortcodes()
S
57 3 18
replaceShortcodeHandler()
S
63 3 11
getRegisteredShortcodes()
S
58 2 17
processTranslation()
S
59 2 15
processString()
S
59 2 15
getMaskRegexp()
S
60 1 16
passPostDownloadFilters()
S
66 2 8
escapeValue()
S
69 2 7
renderString()
S
72 2 6
restoreHandlers()
S
71 2 6
buildShortcode()
S
63 1 12
preUploadFiltering()
S
65 1 9
createShortcodeAttributeNode()
S
65 1 10
resetInternalState()
S
77 1 4
buildMaskedShortcode()
S
71 1 5
replaceHandlerForApplying()
S
80 1 3
unmask()
S
63 1 10
register()
S
74 1 4
setShortcodeAssignments()
S
77 1 4
getShortcodeAssignments()
S
78 1 4
replaceHandlerForMining()
S
76 1 4